#pragma once

#include <iostream>
#include <fstream>
#include <streambuf>
#include <string>
#include <sstream>
#include <Windows.h>
#include "ScriptScanner.h"

typedef void (*FUNC)(float param);

class ScriptInterpreter
{
public:
	ScriptInterpreter(void);
	~ScriptInterpreter(void);

	void OpenScript(char* fileName);
	void Start();
	int Tick();

	void RegisterFunc(FUNC func);
private:
	char* script;
	float startTime;
	ScriptScanner* scan;
};